  t2 = q1*2.0;
  t3 = q2*2.0;
  t4 = q3*2.0;
  t5 = -q2;
  t7 = -q3;
  t9 = q1/2.0;
  t10 = q2/2.0;
  t11 = q3/2.0;
  t12 = q2*(3.0/2.0);
  t6 = -t3;
  t8 = -t4;
  t13 = q1+t5;
  t14 = q2+t7;
  t15 = -t11;
  t16 = -t12;
  t24 = t9+t10;
  t25 = t10+t11;
  t17 = t2+t6;
  t18 = t2+t8;
  t19 = t3+t8;
  t20 = t13*t13;
  t21 = t14*t14;
  t27 = t9+t16;
  t28 = t12+t15;
  t22 = epsilon+t20;
  t23 = epsilon+t21;
  t26 = -t21;
  t29 = 1.0/(t22*t22);
  t30 = 1.0/(t22*t22*t22);
  t31 = 1.0/(t23*t23);
  t32 = 1.0/(t23*t23*t23);
  t33 = t20+t26;
  t34 = fabs(t33);
  t35 = (t33/fabs(t33));
  t36 = t34*t34;
  t47 = t17*t29*t34*t35*2.0;
  t48 = t18*t29*t34*t35*2.0;
  t49 = t18*t31*t34*t35*2.0;
  t50 = t19*t31*t34*t35*2.0;
  t51 = C1*t17*t31*t34*t35*2.0;
  t52 = C1*t19*t29*t34*t35*2.0;
  t53 = C2*t17*t31*t34*t35*2.0;
  t54 = C2*t19*t29*t34*t35*2.0;
  t37 = t29*t36;
  t38 = t31*t36;
  t45 = t17*t30*t36*2.0;
  t46 = t19*t32*t36*2.0;
  t55 = -t47;
  t56 = -t48;
  t57 = -t51;
  t58 = -t53;
  t39 = t37+1.0;
  t40 = t38+1.0;
  t65 = t46+t49;
  t66 = t46+t50;
  t67 = t45+t55;
  t68 = t45+t56;
  t41 = C1*t39;
  t42 = C2*t39;
  t43 = C1*t40;
  t44 = C2*t40;
  t69 = C1*t65;
  t70 = C1*t66;
  t71 = C2*t65;
  t72 = C2*t66;
  t73 = C1*t67;
  t74 = C1*t68;
  t75 = C2*t67;
  t76 = C2*t68;
  t59 = t41+t44;
  t60 = t42+t43;
  t77 = -t69;
  t78 = -t71;
  t81 = t54+t70;
  t82 = t52+t72;
  t83 = t58+t73;
  t84 = t57+t75;
  t61 = 1.0/t59;
  t62 = 1.0/t60;
  t85 = t74+t78;
  t86 = t76+t77;
  t63 = t61*t61;
  t64 = t62*t62;
  t79 = (t42*t62)/2.0;
  t80 = (t44*t61)/2.0;
  A0[0][0] = t79-t24*t62*t75+t43*t64*(t11+t16)*(t51-t75)-t24*t42*t64*(t51-t75)-C1*t17*t31*t34*t35*t62*(t11+t16)*2.0;
  A0[0][1] = t79+t43*t62*(3.0/2.0)+t62*t69*(t11+t16)+t24*t62*t76-t43*t64*(t11+t16)*(t69-t76)+t24*t42*t64*(t69-t76);
  A0[0][2] = t43*t62*(-1.0/2.0)-t62*t70*(t11+t16)+t24*t54*t62+t43*t64*t81*(t11+t16)-t24*t42*t64*t81;
  A0[1][0] = t41*t61*(-1.0/2.0)+t25*t53*t61+t27*t61*t73+t27*t41*t63*(t53-t73)-t25*t44*t63*(t53-t73);
  A0[1][1] = t80+t41*t61*(3.0/2.0)-t27*t61*t74+t25*t61*t78-t27*t41*t63*(t71-t74)+t25*t44*t63*(t71-t74);
  A0[1][2] = t80+t25*t61*t72+t27*t41*t63*t82-t25*t44*t63*t82-C1*t19*t27*t29*t34*t35*t61*2.0;
